Introduction to Programming with Fortran by Ian Chivers & Jane Sleightholme

Introduction to Programming with Fortran by Ian Chivers & Jane Sleightholme

Author:Ian Chivers & Jane Sleightholme
Language: eng
Format: epub, pdf
ISBN: 9783319755021
Publisher: Springer International Publishing


21.7 Example 3: Person Data Type

In this example we have a user defined type person which we wish to use in the main program and pass arguments of this type to the subroutines read_data and stats. In order to have the type person available to two subroutines and the main program we have defined person in a module personal_module and then made the module available to each program unit with the statement

Note that we have put both subroutines in one module.

21.8 Example 4: A Module for Simple Timing of a Program



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.